package com.app.model.bean;

import java.io.Serializable;
import java.util.List;

/**
 * Created by Administrator on 2017/6/25.
 */

public class TaskBean implements Serializable {

    // ID
    private String id;
    // 发件人
    private SenderBean sender;
    // 收件人
    private List<String> receivers;
    // 领取任务时间
    private long getTime;
    // 执行任务时间
    private long exeTime;
    // 邮件内容
    private EmailBean email;
    // 任务状态
    private int status;
    // 详情
    private String detail;
    // 等待中
    public static final int STATUS_WAITING = 0;
    // 执行成功
    public static final int STATUS_SUCCESS = 1;
    // 执行失败
    public static final int STATUS_FAIL = 2;

    public TaskBean() {

    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public SenderBean getSender() {
        return sender;
    }

    public void setSender(SenderBean sender) {
        this.sender = sender;
    }

    public EmailBean getEmail() {
        return email;
    }

    public void setEmail(EmailBean email) {
        this.email = email;
    }

    public List<String> getReceivers() {
        return receivers;
    }

    public void setReceivers(List<String> receivers) {
        this.receivers = receivers;
    }

    public long getGetTime() {
        return getTime;
    }

    public void setGetTime(long getTime) {
        this.getTime = getTime;
    }

    public long getExeTime() {
        return exeTime;
    }

    public void setExeTime(long exeTime) {
        this.exeTime = exeTime;
    }

    public int getStatus() {
        return status;
    }

    public void setStatus(int status) {
        this.status = status;
    }

    public String getDetail() {
        return detail;
    }

    public void setDetail(String detail) {
        this.detail = detail;
    }
}
